<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
namespace App\Constants;

class ErrorCode
{
    public const SERVER_ERROR = '500_请求失败，服务器错误';

    public const LOGIN_ERROR = '10001_登录失败';
    public const CUSTOM_ERROR = '10000_';

    // auth
    public const AUTH_USER_HAVA_ERROR = '10001_用户已存在';
    public const AUTH_USER_NO_HAVA_ERROR = '10002_用户不存在或密码错误';
    public const AUTH_PWD_ERROR = '10003_密码不正确';
    public const AUTH_NO_ME_ERROR = '10004_非自己的数据无权限';
    public const AUTH_USER_SHARE_ERROR = '10012_参与活动后 才可以分享';
    public const ADMIN_PWD_UPDATE2_ERROR = '10013_两次密码不一致';

    public const NO_CUSTOMER_ERROR = '10100_';

}
